export const isProd = process.env.NODE_ENV === 'production'
// export const isProd = true
export const protocol = window.location.protocol

const isSecure = protocol === 'https:'
const apiURL = protocol + `//47.112.180.188:9050`
const wsURL = isSecure ? 'wss://47.112.180.188:9050' : 'ws://47.112.180.188:9050'

export const host = isProd ? apiURL : 'http://127.0.0.1:9050'
export const wsHost = isProd ? wsURL : 'http://127.0.0.1:9050'

export const tradeWay = []
